{include file="common@index/header" /}
<body class="mdui-drawer-body-left mdui-appbar-with-toolbar  mdui-theme-primary-{$theme} mdui-theme-accent-pink mdui-bottom-nav-fixed">
<header class="mdui-appbar mdui-appbar-fixed">
    <div class="mdui-toolbar mdui-color-theme mdui-ripple">
        <span class="mdui-btn mdui-btn-icon mdui-ripple mdui-ripple-white" mdui-drawer="{target: '#main-drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></span>
        <a href="/" class="mdui-typo-headline mdui-hidden-xs mdui-ripple">{$Think.config.app_name}</a>
        <a href="/" class="mdui-typo-title mdui-ripple">{$name}</a>
        <div class="mdui-toolbar-spacer"></div>
        <a href="javascript:location.reload();;" class="mdui-btn mdui-btn-icon mdui-ripple" mdui-tooltip="{content: '刷新页面'}"><i class="mdui-icon material-icons">refresh</i></a>
        <a href="javascript:;" class="mdui-btn mdui-btn-icon mdui-ripple" mdui-tooltip="{content: '账户'}"><i class="mdui-icon material-icons">account_circle</i></a>
    </div>
</header>

<div class="mdui-drawer" id="main-drawer">
    <div class="mdui-list" mdui-collapse="{accordion: true}" style="margin-bottom: 76px;">
        <?php foreach ($nav_1 as $val){ ?>
        <div class="mdui-collapse-item mdui-collapse-item-open">
            <div class="mdui-collapse-item-header mdui-list-item mdui-ripple">
                <i class="mdui-list-item-icon mdui-icon material-icons mdui-text-color-{$val.color|default='green'}">{$val.icon}</i>
                <div class="mdui-list-item-content">{$val.title}</div>
                <i class="mdui-collapse-item-arrow mdui-icon material-icons">keyboard_arrow_down</i>
            </div>
            <div class="mdui-collapse-item-body mdui-list">
                <?php foreach ($nav_2 as $va){ ?>
                    <?php if ($va['pid'] == $val['id']){ ?>

                <a href="javascript:url('{$va.url}')" class="mdui-list-item mdui-ripple"><i class="mdui-list-item-icon mdui-icon material-icons mdui-text-color-{$va.color|default='green'}">{$va.icon}</i>{$va.title}</a>
                    <?php } ?>
                <?php } ?>
            </div>
        </div>
        <?php } ?>
    </div>
</div>

<a id="anchor-top"></a>